




//
//  MBReleaseSourceTool.m
//  发布求租
//
//  Created by MB__Lee on 2018/6/7.
//  Copyright © 2018年 MB__Lee. All rights reserved.
//

#import "MBReleaseSourceTool.h"

#import "MBCircleBTNModel.h"
#import "MBCommonCellModel.h"

@implementation MBReleaseSourceTool

+(NSMutableArray *)MBReleaseSourceTool_CreatWithType:(SourceType)type{
    NSMutableArray *mut;
    if (type == SourceTypeResident) {
        mut = [self creatSource_resident];
    }else if (type == SourceTypeOffBuilding){
        mut = [self creatSource_offBuilding];
    }else if (type == SourceTypeShop){
        mut = [self creatSource_shop];
    }else if (type == SourceType_houseResident){
        mut = [self creatSource_houseResident];
    }
    
    return mut;
}
// 住宅
+(NSMutableArray *)creatSource_resident{
    NSMutableArray *arr  = [NSMutableArray array];
    
    //1.
    MBCircleBTNModel *one  = [[MBCircleBTNModel alloc] init];
    one.title = @"房屋用途";
    one.btnNameMut = [NSMutableArray arrayWithArray:@[@"住宅",@"写字楼",@"商铺"]];
    //2.
    MBCommonCellModel *two = [[MBCommonCellModel alloc] init];
    two.title = @"标题";
    two.PHTest = @"仅填写标题";
    two.hasX = YES;

    //3.
    MBCommonCellModel *three = [[MBCommonCellModel alloc] init];
    three.title = @"期望面积";
    three.middle = @"至";
    three.unit = @"㎡";
    three.hasX = YES;

    //4.
    MBCommonCellModel *four = [[MBCommonCellModel alloc] init];
    four.title = @"期望租金";
    four.middle = @"至";
    four.unit = @"元/月";
    four.hasX = YES;

    //5.
    MBCommonCellModel *five = [[MBCommonCellModel alloc] init];
    five.title = @"期望户型";
    five.PHTest = @"未选择";
    
    //6.
    MBCommonCellModel *six = [[MBCommonCellModel alloc] init];
    six.title = @"特色标签";
    six.PHTest = @"未选择";
    //7.
    MBCommonCellModel *seven = [[MBCommonCellModel alloc] init];
    seven.title = @"期望区域";
    seven.PHTest = @"未选择";
    //8.
    MBCommonCellModel *eight = [[MBCommonCellModel alloc] init];
    eight.title = @"指定小区";
    eight.PHTest = @"仅填写小区名称";
    //9.
    MBCommonCellModel *nigh = [[MBCommonCellModel alloc] init];
    nigh.title = @"求租描述";
    nigh.PHTest = @"请输入求租描述";
    nigh.hasX = YES;
    
    [arr addObjectsFromArray:@[one,two,three,four,five,six,seven,eight,nigh]];

    return  arr;
    
}
// 写字楼
+(NSMutableArray *)creatSource_offBuilding{
    NSMutableArray *arr  = [NSMutableArray array];
    
    //1.
    MBCircleBTNModel *one  = [[MBCircleBTNModel alloc] init];
    one.title = @"房屋用途";
    one.btnNameMut = [NSMutableArray arrayWithArray:@[@"住宅",@"写字楼",@"商铺"]];
    
    //2.
    MBCommonCellModel *two = [[MBCommonCellModel alloc] init];
    two.title = @"标题";
    two.PHTest = @"仅填写标题";
    two.hasX = YES;
    
    //3.
    MBCommonCellModel *three = [[MBCommonCellModel alloc] init];
    three.title = @"期望面积";
    three.middle = @"至";
    three.unit = @"㎡";
    three.hasX = YES;
    //4.
    MBCommonCellModel *four = [[MBCommonCellModel alloc] init];
    four.title = @"期望租金";
    four.middle = @"至";
    four.unit = @"元/㎡.月";
    four.hasX = YES;
    
    //5.
    MBCommonCellModel *five = [[MBCommonCellModel alloc] init];
    five.title = @"写字楼类型";
    five.PHTest = @"未选择";
    
    //6.
    MBCommonCellModel *six = [[MBCommonCellModel alloc] init];
    six.title = @"特色标签";
    six.PHTest = @"未选择";
    //7.
    MBCommonCellModel *seven = [[MBCommonCellModel alloc] init];
    seven.title = @"期望区域";
    seven.PHTest = @"未选择";
    //8.
    MBCommonCellModel *eight = [[MBCommonCellModel alloc] init];
    eight.title = @"指定小区";
    eight.PHTest = @"仅填写小区名称";
    //9.
    MBCommonCellModel *nigh = [[MBCommonCellModel alloc] init];
    nigh.title = @"求租描述";
    nigh.PHTest = @"请输入求租描述";
    nigh.hasX = YES;
    
    [arr addObjectsFromArray:@[one,two,three,four,five,six,seven,eight,nigh]];
    
    return  arr;
}
// 商铺
+(NSMutableArray *)creatSource_shop{
    NSMutableArray *arr  = [NSMutableArray array];
    
    //1.
    MBCircleBTNModel *one  = [[MBCircleBTNModel alloc] init];
    one.title = @"房屋用途";
    one.btnNameMut = [NSMutableArray arrayWithArray:@[@"住宅",@"写字楼",@"商铺"]];
    //2.
    MBCommonCellModel *two = [[MBCommonCellModel alloc] init];
    two.title = @"标题";
    two.PHTest = @"仅填写标题";
    two.hasX = YES;
    
    //3.
    MBCommonCellModel *three = [[MBCommonCellModel alloc] init];
    three.title = @"期望面积";
    three.middle = @"至";
    three.unit = @"㎡";
    three.hasX = YES;
    //4.
    MBCommonCellModel *four = [[MBCommonCellModel alloc] init];
    four.title = @"期望租金";
    four.middle = @"至";
    four.unit = @"元/月";
    four.hasX = YES;
    //5.
    MBCommonCellModel *five = [[MBCommonCellModel alloc] init];
    five.title = @"商铺类型";
    five.PHTest = @"未选择";
    
    //6.
    MBCommonCellModel *six = [[MBCommonCellModel alloc] init];
    six.title = @"特色标签";
    six.PHTest = @"未选择";
    //7.
    MBCommonCellModel *seven = [[MBCommonCellModel alloc] init];
    seven.title = @"期望区域";
    seven.PHTest = @"未选择";
    //8.
    MBCommonCellModel *eight = [[MBCommonCellModel alloc] init];
    eight.title = @"指定小区";
    eight.PHTest = @"仅填写小区名称";
    //9.
    MBCommonCellModel *nigh = [[MBCommonCellModel alloc] init];
    nigh.title = @"求租描述";
    nigh.PHTest = @"请输入求租描述";
    nigh.hasX = YES;
    
    [arr addObjectsFromArray:@[one,two,three,four,five,six,seven,eight,nigh]];
    
    return  arr;
}

#pragma mark --发布租房（房源）信息  --住宅
+(NSMutableArray *)creatSource_houseResident{
    NSMutableArray *arr  = [NSMutableArray array];
    
    //1.选择类型
    MBCircleBTNModel *one  = [[MBCircleBTNModel alloc] init];
    one.title = @"选择类型";
    one.btnNameMut = [NSMutableArray arrayWithArray:@[@"住宅",@"写字楼",@"商铺"]];
    //2.填写信息
    MBCommonCellModel *two = [[MBCommonCellModel alloc] init];
    two.title = @"填写信息";
    two.subtitle = @"产权证明";
    two.PHTest = @"未选择";
    two.hasX = NO;
    
    //3. 独家租赁委托协议
    MBCommonCellModel *three = [[MBCommonCellModel alloc] init];
    three.title = @"独家租赁委托协议";
    three.PHTest = @"未选择";
    three.hasX = YES;
    //4.小区名称
    MBCommonCellModel *four = [[MBCommonCellModel alloc] init];
    four.title = @"小区名称";
    four.PHTest = @"请输入小区名称";
    four.hasX = YES;
    //5.区域
    MBCommonCellModel *five = [[MBCommonCellModel alloc] init];
    five.title = @"区域";
    five.PHTest = @"未选择";
    five.hasX = YES;
    
    //6.地址
    MBCommonCellModel *six = [[MBCommonCellModel alloc] init];
    six.title = @"地址";
    six.PHTest = @"请填写详细地址";
    six.hasX = YES;
    //7. 小区定位
    MBCommonCellModel *seven = [[MBCommonCellModel alloc] init];
    seven.title = @"小区定位";
    
    //8.房屋户型
    MBCommonCellModel *eight = [[MBCommonCellModel alloc] init];
    eight.title = @"房屋户型";
    eight.hasX = YES;
    
    //9.房屋面积
    MBCommonCellModel *nigh = [[MBCommonCellModel alloc] init];
    nigh.title = @"房屋面积";
    nigh.PHTest = @"请输入房屋面积";
    nigh.unit = @"㎡";
    nigh.hasX = YES;
    
    //10.楼层
    MBCommonCellModel *ten = [[MBCommonCellModel alloc] init];
    ten.hasX = YES;
    ten.title = @"楼层";
    
    //11.朝向
    MBCommonCellModel *eleven = [[MBCommonCellModel alloc] init];
    eleven.title = @"朝向";
    eleven.PHTest = @"未选择";
    
    //12.装修
    MBCircleBTNModel *twele = [[MBCircleBTNModel alloc] init];
    twele.title  = @"装修";
    twele.btnNameMut = [NSMutableArray arrayWithArray:@[@"豪华装修",@"中等装修",@"普通装修",@"无装修"]];
    
    //13.配套
    MBCircleBTNModel *third = [[MBCircleBTNModel alloc] init];
    third.title = @"配套";
    third.btnNameMut = [NSMutableArray arrayWithArray:@[@"电视",@"冰箱",@"空调",@"沙发",@"床",@"洗衣机",@"微波炉",@"热水器",@"衣柜",@"宽带"]];
    
    //14.租金
    MBCommonCellModel *fourth = [[MBCommonCellModel alloc] init];
    fourth.title = @"租金";
    fourth.PHTest = @"请输入租金";
    fourth.unit = @"元/月";
    fourth.hasX = YES;
    
    //15.佣金
    MBCommonCellModel *F15 = [[MBCommonCellModel alloc] init];
    F15.title = @"佣金";
    F15.PHTest = @"请输入佣金";
    F15.unit = @"元/月";
    F15.hasX = YES;
    
    //16.押金方式
    MBCircleBTNModel *fifth = [[MBCircleBTNModel alloc] init];
    fifth.title = @"押金方式";
    fifth.btnNameMut = [NSMutableArray arrayWithArray:@[@"押一",@"押二",@"押三"]];
    fifth.hasX = YES;
    // 16.付租方式
    MBCircleBTNModel *sixth  = [[MBCircleBTNModel alloc] init];
    sixth.title = @"付租方式";
    sixth.btnNameMut = [NSMutableArray arrayWithArray:@[@"月付",@"季度付",@"半年付",@"年付"]];
    
    // 18.特色标签
    MBCommonCellModel *seventh = [[MBCommonCellModel alloc] init];
    seventh.title = @"特色标签";
    seventh.PHTest = @"未选择";
    seventh.hasX = YES;
    
    //19.标题
    MBCommonCellModel *eighTH =  [[MBCommonCellModel alloc]init];
    eighTH.title = @"标题";
    eighTH.PHTest = @"请填写标题";
    eighTH.hasX = YES;
    

    //12.详细描述
    MBCommonCellModel *nigTH = [[MBCommonCellModel alloc] init];
    nigTH.title = @"详细描述";
    nigTH.PHTest = @"请输入详细描述";
    
    
    
    [arr addObjectsFromArray:@[one,two,three,four,five,six,seven,eight,nigh,ten,eleven,twele,third,fourth,F15,fifth,sixth,seventh,eighTH,nigTH]];
    
    return  arr;
}


@end
